/**
 * Point.java
 *
 * The Point object represents the x and y information for a cartesian rep.
 *
 *
 * @author Clint Fuchs
 * @version 1.0
 */

public class Point {
    private double x;
    private double y;
    
    /**
     * Constructor
     */
    public Point(double newX, double newY){
	this.x = newX;
	this.y = newY;
    }
    /**
     * Sets the X coordinate of the address.
     * @param value the X coordinate.
     */
    public void setX(double value){
        this.x = value;
    }
 
    /**
     * Sets the Y coordinate of the address.
     * @param value the Y coordinate.
     */
    public void setY(double value){
        this.y = value;
    }

    /**
     * Returns the X coordinate of the address.
     * @return double
     */
    public double getX(){
        return this.x;
    }

    /**
     * Returns the Y coordinate of the address.
     * @return double
     */
    public double getY(){
        return this.y;
    }

    /**
     * Returns a duplicate of this Point
     * @return Point
     */
    public Point getCopy(){
	return new Point(this.x, this.y);
    }
}
